<?php

class Panel_model extends CI_Model {
    
    function Panel_model() {
        $this->load->library('api/services/Panel');
    }
    
    function login() {
        $data = Panel::panelSetupGet();
        
        if(!$data) return true;
        else return false;
    }
    
    function admin_option_disable($admin_panel_id) {
        return Panel::adminOptionDisable($admin_panel_id);
    }
    
    function admin_option_enable($admin_panel_id) {
        return Panel::adminOptionEnable($admin_panel_id);
    }
    
    function admin_option_name($admin_panel_id, $title) {
        return Panel::adminOptionName($admin_panel_id, $title);
    }
    
    function admin_menus_list() {
        return Panel::adminMenusList();
    }
    
    function admin_menu_get($admin_panel_id) {
        return Panel::adminMenuGet($admin_panel_id);
    }
    
    function admin_options_list($object_id) {
        return Panel::adminOptionsList($object_id);
    }
    
    function admin_options_disabling() {
        return Panel::adminOptionsDisabling();
    }    
    
}
?>
